package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class SystemMessage {
    private Long id;        //id

    private String content; //通知内容

    private Travel travel;  //关联游记

    private int state = 0;  //状态,true已读/false未读(默认)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date systemtime;//通知时间

    private User user;      //游记作者id


}